package top.dprkshow.practice.graph;

/**
 * @author Kent HAN
 * @date 2021/9/17
 */
public class WeightedDirectedEdge {
    int v, w, weight;

    public WeightedDirectedEdge(int v, int w, int weight) {
        this.v = v;
        this.w = w;
        this.weight = weight;
    }

    public int from() {
        return v;
    }

    public int to() {
        return w;
    }

    public int getWeight() {
        return weight;
    }
}
